package com.youlu.campus.entity.aomen;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Getter
@Setter
@Document(collection = "ao_men_access_token")
public class AoMenAccessToken extends EntityBase {

    @Indexed(expireAfterSeconds = 7200)
    private String appId;

    private String accessToken;
    @Indexed(expireAfterSeconds = 7200)
    private Date accessTokenExpireTime;
}
